using System;
using System.Collections.Generic;
using System.Text;
using Mud.Common.Physical;


namespace Mud.Server.Physical
{
    public class EventLocationSay : PhysicalEvent
    {
        
        /// <summary>
        /// What is said.
        /// </summary>
        public string Message
        {
            get { return _message; }
        }
        private string _message;

        /// <summary>
        /// Type of communication.
        /// </summary>
        public CommunicationType CommunicationType
        {
            get { return _type; }
        }
        private CommunicationType _type;

        public Location Location
        {
            get { return _location; }
            set { _location = value; }
        }
        private Location _location;

        public EventLocationSay(CommunicationType type, string message, Location location)
            : base(location)
        {
            _message = message;
            _type = type;
            _location = location;
        }

        public override void Send(IPhysicalEventReceiver receiver) { receiver.Receive(this); }
    }
}
